import request from "@/utils/request.js";

export function refreshAdminSwitchStore() {
    return request({
        url: "/store-switch/refreshAdminSwitchStore.do",
        method: "post"
    });
}

export function getAdminSwitchStoreList(info) {
    return request({
        url: "/store-switch/getAdminSwitchStoreList.do",
        method: "post",
        data: info
    });
}

export function upwardAdminSwitchStore(id, number) {
    return request({
        url: `/store-switch/upwardAdminSwitchStore.do/${id}/${number}`,
        method: "post",
    });
}
export function downwardAdminSwitchStore(id, number) {
    return request({
        url: `/store-switch/downwardAdminSwitchStore.do/${id}/${number}`,
        method: "post",
    });
}

export function updateAdminSwitchStoreInfo(info) {
    return request({
        url: `/store-switch/updateAdminSwitchStoreInfo.do`,
        method: "post",
        data: info
    });
}

export function inputAdminSwitchStore(info) {
    return request({
        url: `/store-switch/inputAdminSwitchStore.do`,
        method: "post",
        data: info
    });
}

export function outputAdminSwitchStore(info) {
    return request({
        url: `/store-switch/outputAdminSwitchStore.do`,
        method: "post",
        data: info
    });
}

export function getAdminSwitchStoreDetail(id) {
    return request({
        url: `/store-switch/getAdminSwitchStoreDetail.do/${id}`,
        method: "get"
    });
}

export function deleteAdminSwitchStoreItem(id){
    return request({
        url: `/store-switch/deleteAdminSwitchStoreItem.do/${id}`,
        method: "delete"
    });
}
